@extends('admin.base.widgets')

@section('content')
<div id="mws-container" class="clearfix"> 
<div class="container">
    <div class='block-area'>
        <h3 class="block-title">&nbsp;&nbsp;&nbsp;&nbsp;修改快递</h3>
            @if (count($errors) > 0)
                <div class="alert alert-danger">
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>&nbsp;&nbsp;&nbsp;{{ $error }}</li>
                        @endforeach
                    </ul>
                </div>
            @endif
            <div class="alert alert-danger">
                <ul>
                   
                </ul>
            </div>
        <form action='{{ url("dilivery/".$list->DiliveryId) }}' method='post'>
            {{ csrf_field() }}
            {{ method_field('PUT') }}
            <div class='row'>
                <div class="col-lg-4">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;快递名称:&nbsp;&nbsp;&nbsp;<input name='DiliveryName' class="form-control m-b-10" value="{{ $list->DiliveryName }}" type="text"><br />         
                </div>
                <br />
                <div class="col-lg-4">
                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;快递描述:&nbsp;&nbsp;&nbsp;<input name='DiliveryContent' class="form-control m-b-10" value="{{ $list->DiliveryContent }}" type="text"><br />
                </div>
                <br />
                <div class="col-lg-4">
                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商品状态:
                     <input name='DiliveryStatus' type="radio" value="0" @if($list->DiliveryStatus == 0)checked @endif>启用
                     <input name='DiliveryStatus' type="radio" value="1" @if($list->DiliveryStatus == 1)checked @endif>停用
                </div>
                <br />
                <div>
                    <div>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' class='btn' value='修改'>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
</div>
@endsection